package com.gdk.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface TicketOrderDao {
	//查询所有订单
	List<Map<String,Object>> findAllOrder();
	//查询所有收费订单 
	List<Map<String,Object>> findAllOrderAndMoney();
	//查询待核销订单
	List<Map<String,Object>> findAllOrderAndStatus1();
	//动态查询所有订单
	List<Map<String,Object>> findAllOrderPaging(Map<String,Object> map);
	//修改订单状态 
	int updateOrderStatus(Map<String,Object> map);
	//查询用户是否已下单 
	List<Map<String,Object>> findUserByOrder(Map<String,Object> map);
	//查询下级订单
	List<Map<String,Object>> findAllOrderByFXOne(Map<String,Object> map);
	//查看相关联的核销码  
	List<Map<String,Object>> findHXCodeByOrder(Map<String,Object> map);
	//查询所有核销码 
	List<Map<String,Object>> findAllHXCode(Map<String,Object> map);
	//根据核销码查询信息
	List<Map<String,Object>> findHXCodeByCode(Map<String,Object> map); 
	//修改核销码状态 
	int updateHXCodeStatus(Map<String,Object> map);
	//查询指定商户的订单
	List<Map<String,Object>> findAllOrderByShop(Map<String,Object> map);
	//查询核销码信息
	Map<String,Object> selectHXCodeByID(Map<String,Object> map);
	//查询指定订单的所有为0的核销码
	List<Map<String,Object>> selectAllHXCodeByOrderAndCodeStatus(Map<String,Object> map);
	//根据核销码查询信息新
	Map<String,Object> selectHXCodeByCode(Map<String,Object> map);
	//修改核销码状态 
	int updateHXCodeStatusByCode(Map<String,Object> map);
	//查询核销码信息
	Map<String,Object> selectHXCodeByHXCode(Map<String,Object> map);
}
